<?php
namespace Mechanism {
	use Mechanism\Exception;
	
	require_once '../include/Mechanism/Loader/Autoloader/Standard.php';
	
	$autoloader = new Loader\Autoloader\Standard( );
	$autoloader->add_inc_path( '../include' );
	$autoloader->autoloading( );
		
	try {	
		$front = new Controller\Front( );
		$front->set_app_path( '../application' )
			  ->set_request( new Request\Http( ) );

		$response = $front->run( );
		$response->send( );
	} catch( Exception\IException $e ) {
		echo $e->getMessage( );
	}
}
	
	








































?>
